package com.zeei.ems.base.dao;

import com.zeei.ems.base.mapper.BasicMapper;
import com.zeei.ems.base.vo.UserParam;
import com.zeei.ems.base.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserDao extends BasicMapper<UserVO> {

    List<UserVO> listUser(@Param("userParam")UserParam userParam);

    UserVO getUserByLoginName(@Param("userName")String userName);

    @Update("update T_BAS_USER set username='xiaoming' where userid = #{id}")
    void updateUser(Integer id);
}
